<?php
	session_start();
	if (!isset($_SESSION['kiemtradangnhapanan']) || $_SESSION['kiemtradangnhapanan']!=1) {
		header('location: ../../index.php');
		die;
	}
		
	$table = $_GET["table"];
	$p = $_GET["p"];
	$listid = $_GET["listid"];
	
	if ($table!="" && $p!="" && $listid!="") {
		require("../librarys/funs/classdb.php");
		$db = new db;
		$db->delete_list_data_db($table, $listid);
		
		header('location: index.php?p='.$p);
	}
?>